home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 299_01 / crews1.ex < prev    next >
Text File  |  1989-12-28  |  491b  |  21 lines

  1.  
  2.  
  3. Example 1. An Example of MEL Input for a Hydraulic Analysis Program. 
  4. (Note that tokens will be unique to each application.)
  5.  
  6.  
  7. title, 'Example Problem Illustrating MEL'; 
  8. fluid, "water" 
  9.     density = 62.4 (lbm/ft3), 
  10.     viscosity = 1 (cp); 
  11. node, 1, pressure = 8.67 (psi); "20 ft of water" 
  12. branch, 100, from_node = 1, to_node = 2; 
  13.     pipe, 
  14.         length = 100 (ft), 
  15.         id = 6 (in), 
  16.         material = steel; 
  17. end_of_branch; 
  18. node, 2, pressure = 6.5 (psi); "15 ft of water" 
  19. next; 
  20.  
  21.